Resource-dependent branching process